home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / SPAWNO41.ARJ / _SPAWNO.H < prev    next >
C/C++ Source or Header  |  1991-11-10  |  1KB  |  38 lines

  1. /********************************************************************/
  2. /*   SPAWNO v4.0   EMS/XMS/disk swapping replacement for spawn...() */
  3. /*   (c) Copyright 1990, 1991 Ralf Brown  All Rights Reserved        */
  4. /*                                    */
  5. /*   May be freely copied provided that this copyright notice is    */
  6. /*   not altered or removed.                        */
  7. /********************************************************************/
  8.  
  9. #include <stdlib.h>
  10. #include <errno.h>
  11. #include "spawno.h"
  12.  
  13. /* By default, the SPAWNO functions which do not accept an explicit          */
  14. /* environment pointer pass the calling program's original environment to the */
  15. /* child.  You may recompile SPAWNO so that it passes the current environment */
  16. /* by uncommenting the next line and adjusting the definition of ENVP below   */
  17. /* as necessary.  Note that doing so makes the libraries compiler-dependent,  */
  18. /* which is why the distributed libraries do not make use of this option.     */
  19.  
  20. /* #define USE_ENVP /**/
  21.  
  22. #ifdef USE_ENVP
  23. #  define ENVP environ     /* set as appropriate for your compiler */
  24. #  define ENV_SEG (__spawn_buildenv(ENVP))
  25. #else
  26. #  define ENV_SEG 0
  27. #endif /* USE_ENVP */
  28.  
  29. #ifndef P_WAIT
  30. #  define P_WAIT 0
  31. #endif /* P_WAIT */
  32.  
  33. unsigned int pascal __spawn_buildenv(const char **env) ;
  34. void pascal __spawn_free_env(void) ;
  35. char * pascal __spawn_search(const char *name) ;
  36.  
  37. /*=- End of _SPAWNO.H -=*/
  38.